﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>客户信息查看</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
    <link href="../Frozenui1.3/css/frozen.css" rel="stylesheet" />
    <script src="../JS/zepto.min.js"></script>
    <script src="../Frozenui1.3/js/frozen.js"></script>
    <script src="/Scripts/avalon.js"></script>
    <script src="/Scripts/SZHLCommon.js"></script>
    <script>
        var strId = ComFunJS.getQueryString("ID");
        var khxxinfo = avalon.define({
            $id: "khxxinfo",
            modelData: {},
            ygData: {}
        });
        avalon.ready(function () {

            if (strId != null) {
                var lg = $.loading({
                    content: '加载中...',
                })
                $.getJSON('/API/WXAPI.ashx?Action=GETKHGLMODEL&r=' + Math.random(), { P1: strId }, function (resultData) {
                    
                    if (resultData.ErrorMsg == "") {
                        khxxinfo.modelData = resultData.Result;
                        if (resultData.Result.KHFXRS != null) {
                            $.getJSON('/API/SZHLAPI.ashx?Action=GETUSERSBYUSERNAME&r='+Math.random(), { P1: resultData.Result.KHFXRS }, function (data) {
                                
                                if (data.ErrorMsg == "") {
                                    khxxinfo.ygData = data.Result;
                                }
                            })
                        }
                    }
                    lg.hide();
                })
            }

        })
    </script>
    <style>
        span {
            width: 100%;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            -webkit-appearance: none;
            border: 0;
            background: 0 0;
            padding-left: 95px;
        }
        .ms-controller, [ms-controller] {
            display: none;
        }
    </style>
</head>
<body>
    <header class="ui-header ui-header-stable ui-border-b">
        <i class="ui-icon-return" onclick="history.back(-1)"></i><h1>客户信息查看</h1>
    </header>

    <section class="ui-container">
        <div class="ui-form ui-border-t" ms-controller="khxxinfo">
            <div class="ui-form-item ui-border-b">
                <label>
                    客户类别
                </label>
                <!--<input type="text" placeholder="日报时间" />-->
                <span>{{modelData.KHLeiBie}}</span>
            </div>
            <div class="ui-form-item ui-border-b" style="height: auto; min-height: 44px">
                <label>
                    客户名称
                </label>
                <!--<input type="text" placeholder="日报内容" />-->
                <span ms-html="modelData.KHName"></span>
            </div>
            <div class="ui-form-item ui-border-b">
                <label>
                    手机号
                </label>
                <!--<input type="text" placeholder="抄送人" />-->
                <span>{{modelData.KHPhone}}</span>
            </div>
            <div class="ui-form-item ui-border-b">
                <label>
                    单位
                </label>
                <span>{{modelData.KHDW}}</span>
            </div>
            <div class="ui-form-item ui-border-b">
                <label>
                    职务
                </label>
                <span>{{modelData.KHZhiWu}}</span>
            </div>
            <div class="ui-form-item ui-border-b">
                <label>
                    详细地址
                </label>
                <span>{{modelData.KHAdress}}</span>
            </div>
            <div class="ui-form-item ui-border-b" style="height: auto; min-height: 44px">
                <label>
                    负责人
                </label>
                <div class="ui-label-list" style="padding-left: 95px; margin:0;">
                    <label ms-repeat-el="ygData" class="ui-label" style="position: relative; width: auto;">{{el.UserRealName}}</label>
                </div>
                <!--<span>{{modelData.KHFXRS}}</span>-->
            </div>
            <div class="ui-form-item ui-border-b">
                <label>
                    创建时间
                </label>
                <span>{{modelData.CRDate|date("yyyy-MM-dd")}}</span>
            </div>
            <div class="ui-form-item ui-border-b">
                <label>
                    图片
                </label>
            </div>
        </div>
        <div class="ui-form" style="display:none;">
            <ul class="ui-grid-halve">
                <li>
                    <div class="ui-grid-halve-img">
                        <span style="background-image:url(http://placeholder.qiniudn.com/290x160)"></span>
                    </div>
                </li>
            </ul>

        </div>
    </section>
</body>
</html>
